//
//  SearchView.h
//  homeland
//
//  Created by rain on 14-5-22.
//  Copyright (c) 2014年 xzysun. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol SearchViewDelegate <NSObject>
@optional
- (void)didSearchText:(NSString *)text;
- (void)searchBarTextDidEnd:(NSString *)text;
@end
@interface SearchView : UIView
@property (nonatomic, weak) IBOutlet UITextField *textField;
@property (nonatomic, assign) id<SearchViewDelegate>delegate;
@property (nonatomic, strong)  NSString *searchText;

+ (SearchView *)initView;


@end
